#pragma once

#include "../CoreMinimal.h"

#include "../NetworkingCommon.h"
#include "google/protobuf/message.h"
#include "../URKProto.h"

#include "BlockEngine/BlockEngineGameMode.h"

const MessageHandler message_handler_ServerHandshakeMessage = [&](google::protobuf::Message* message_primitive) {
    urk::pb::ServerHandshakeMessage* message = (urk::pb::ServerHandshakeMessage *) message_primitive;
    // TODO: Write your code here! 

	urk::pb::ClientAuthenticateMessage auth;
	auth.set_userid(0x12345678);
	auth.set_token("TEST");
	ABlockEngineGameMode::GetInstance()->GetClient()->SendMessage((google::protobuf::Message&)auth);
};
